Skip to content

chore: set up changesets for versioned publishing#86

Merged
AKogut merged 1 commit into
mainfrom
chore/8-changesets
Jul 16, 2026
Merged

chore: set up changesets for versioned publishing#86
AKogut merged 1 commit into
mainfrom
chore/8-changesets

Conversation

@AKogut

@AKogut AKogut commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Adds the release machinery for @flakemetry/* npm packages.

What's included

  • @changesets/cli with .changeset/config.jsonaccess: public, baseBranch: main
  • Public/private split: contracts, core, sdk, playwright-reporter, ai, cli are publishable (publishConfig.access: public); db, all apps and the shared config packages remain private
  • release.yml workflow: on push to main, changesets/action opens/updates a version PR from accumulated changesets; merging it publishes to npm with provenance (id-token: write)
  • CONTRIBUTING.md: dev setup, branch/commit conventions, pre-PR checks, changeset requirement per published package
  • Root changeset script

Verification

  • Test changeset applied: contracts bumped 0.0.0 → 0.1.0 (minor) and core → 0.0.1 (patch), both with generated changelogs; private packages untouched; artifacts reverted after the check
  • build / lint / typecheck / test → 31/31 green, format:check clean

Before the first real release (not blocking)

  • Create the @flakemetry npm organization
  • Add the NPM_TOKEN repository secret

Until then the workflow is inert: no pending changesets means no version PR, and publish only runs from a merged version PR.

Closes #8.

Configure @changesets/cli with public access and main as the base branch. Mark the six publishable packages (contracts, core, sdk, playwright-reporter, ai, cli) as public with explicit publishConfig while db, the apps and the shared config packages stay private. Add the release workflow that accumulates merged changesets into a version PR and publishes to npm with provenance on merge, plus CONTRIBUTING.md documenting the development flow and the changeset requirement. Verified by applying a test changeset: version bumps and changelogs were produced for public packages only, then reverted.

Closes #8.
@AKogut AKogut self-assigned this Jul 16, 2026
@AKogut
AKogut merged commit 84a5f75 into main Jul 16, 2026
2 checks passed
@AKogut
AKogut deleted the chore/8-changesets branch July 16, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changesets for versioned npm publishing (reporter, sdk, contracts)

1 participant